]> dgit.raspbian.org Git - gnome-shell.git/commit
StTooltip: fix various warnings and use Clutter API correctly
authorGiovanni Campagna <gcampagna@src.gnome.org>
Tue, 30 Nov 2010 16:20:18 +0000 (17:20 +0100)
committerGiovanni Campagna <gcampagna@src.gnome.org>
Tue, 22 Mar 2011 15:13:38 +0000 (16:13 +0100)
commit087e86fb320d44a866d48bc4eef7f8b4c98fed4f
tree2bd06a96ba853e2fd8a1db89045660d690a40292
parentafffa76c1726158397013e3261876cf003574d1d
StTooltip: fix various warnings and use Clutter API correctly

Use ClutterContainer functions for adding the tooltip instead of
calling clutter_actor_set_parent behind the stage's back, and do
it inside st_widget_show_tooltip (which is a normal method) instead
of overriding st_tooltip_show, which is a vfunc and it is called
internally by Clutter, therefore it is limited in what it can safely
do.
Also, instead of positioning the tooltip with clutter_actor_set_position,
modify the anchor point when the associated widget moves, so that
only a redraw is queued.

https://bugzilla.gnome.org/show_bug.cgi?id=635100
src/st/st-tooltip.c
src/st/st-widget.c